package com.totoro.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.totoro.dao.BaseHibernateDao;
import com.totoro.dao.NoticeDao;
import com.totoro.domain.Notice;

/*
 * 通知service
 */
@Transactional
@Service
public class NoticeService extends BaseService<Notice, Integer> {

	private NoticeDao noticeDao;

	@Autowired
	@Override
	public void setBaseDao(BaseHibernateDao<Notice, Integer> noticeDao) {
		// TODO Auto-generated method stub
		this.baseDao = noticeDao;
		this.noticeDao = (NoticeDao) noticeDao;
	}
}
